From: Claudio Cambra Date: Thu, 5 Dec 2024 07:40:00 +0000 (+0800) Subject: Use std::next rather than adding to iterator in tests X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~2^2~173^2~1 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=60da482b792bca357c377acdfe76047cdbd898db;p=nextcloud-desktop.git Use std::next rather than adding to iterator in tests Signed-off-by: Claudio Cambra --- diff --git a/test/testchunkingng.cpp b/test/testchunkingng.cpp index 87612fab5..35d08f02e 100644 --- a/test/testchunkingng.cpp +++ b/test/testchunkingng.cpp @@ -178,7 +178,7 @@ private slots: // Remove the second chunk, so all further chunks will be deleted and resent auto firstChunk = chunkMap.first(); - auto secondChunk = *(chunkMap.begin() + 1); + auto secondChunk = *(std::next(chunkMap.begin())); const auto chunksList = chunkMap.keys().mid(2); for (const auto& name : chunksList) { chunksToDelete.append(name);